package com.example.xxljobdemo.job;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.executor.XxlJobExecutor;
import com.xxl.job.core.handler.IJobHandler;
import org.springframework.stereotype.Component;

/**
 * @Description 类形式的自定义job
 * @Author wzh
 * @Date 2021/12/17 1:14 下午
 * @Version 1.0
 */
@Component
public class MyJob extends IJobHandler {


    @Override
    public void execute() throws Exception {
        XxlJobHelper.log("XXL-JOB,hello MyJob.");
    }
}
